import type { RouteRecordRaw } from 'vue-router';

const resourceCenter: RouteRecordRaw[] = [
  {
    path: '/resource-center',
    name: 'ResourceCenter',
    meta: {
      title: '资源中台',
      icon: 'mdi:database',
      orderNo: 3000,
    },
    children: [
      {
        path: 'index',
        name: 'ResourceCenterIndex',
        component: () => import('#/views/resource-center/index.vue'),
        meta: {
          title: '资源概览',
          icon: 'mdi:view-dashboard',
        },
      },
      {
        path: 'factory',
        name: 'ResourceFactory',
        component: () => import('#/views/resource-center/ResourceFactory.vue'),
        meta: {
          title: '资源工厂',
          icon: 'mdi:factory',
        },
      },
      {
        path: 'catalog',
        name: 'ResourceCatalog',
        component: () => import('#/views/resource-center/catalog/v2/index.vue'),
        meta: {
          title: '资源目录管理',
          icon: 'mdi:tag-multiple',
        },
      },
      {
        path: 'resources',
        name: 'ResourceManagement',
        meta: {
          title: '资源管理',
          icon: 'mdi:database-cog',
        },
        children: [
          {
            path: 'physical',
            name: 'PhysicalResources',
            component: () =>
              import('#/views/resource-center/resources/physical.vue'),
            meta: {
              title: '物理资源',
              icon: 'mdi:cube-outline',
            },
          },
          {
            path: 'human',
            name: 'HumanResources',
            component: () =>
              import('#/views/resource-center/resources/human.vue'),
            meta: {
              title: '人力资源',
              icon: 'mdi:account-group',
            },
          },
          {
            path: 'digital',
            name: 'DigitalResources',
            component: () =>
              import('#/views/resource-center/resources/digital.vue'),
            meta: {
              title: '数字资源',
              icon: 'mdi:file-document',
            },
          },
          {
            path: 'service',
            name: 'ServiceResources',
            component: () =>
              import('#/views/resource-center/resources/service.vue'),
            meta: {
              title: '服务资源',
              icon: 'mdi:cog',
            },
          },
        ],
      },
      {
        path: 'scheduling',
        name: 'ResourceScheduling',
        component: () => import('#/views/resource-center/scheduling/index.vue'),
        meta: {
          title: '排期与库存管理',
          icon: 'mdi:calendar-clock',
        },
      },
      {
        path: 'occupancy',
        name: 'ResourceOccupancy',
        component: () => import('#/views/resource-center/occupancy/index.vue'),
        meta: {
          title: '占用与结算',
          icon: 'mdi:currency-usd',
        },
      },
      {
        path: 'maintenance',
        name: 'ResourceMaintenance',
        meta: {
          title: '维护管理',
          icon: 'mdi:wrench',
        },
        children: [
          {
            path: 'list',
            name: 'MaintenanceList',
            component: () =>
              import('#/views/resource-center/maintenance/list.vue'),
            meta: {
              title: '维护记录',
              icon: 'mdi:format-list-bulleted',
            },
          },
          {
            path: 'schedule',
            name: 'MaintenanceSchedule',
            component: () =>
              import('#/views/resource-center/maintenance/schedule.vue'),
            meta: {
              title: '维护计划',
              icon: 'mdi:calendar-check',
            },
          },
        ],
      },
      {
        path: 'purchase',
        name: 'ResourcePurchase',
        meta: {
          title: '采购管理',
          icon: 'mdi:shopping',
        },
        children: [
          {
            path: 'list',
            name: 'PurchaseList',
            component: () =>
              import('#/views/resource-center/purchase/list.vue'),
            meta: {
              title: '采购记录',
              icon: 'mdi:format-list-bulleted',
            },
          },
          {
            path: 'create',
            name: 'CreatePurchase',
            component: () =>
              import('#/views/resource-center/purchase/form.vue'),
            meta: {
              title: '新增采购',
              icon: 'mdi:plus',
            },
          },
        ],
      },
      {
        path: 'technical',
        name: 'TechnicalResource',
        component: () => import('#/views/resource-center/technical/index.vue'),
        meta: {
          title: '技术资源管理',
          icon: 'mdi:code-braces',
        },
      },
      {
        path: 'sharing',
        name: 'CrossBusinessSharing',
        component: () => import('#/views/resource-center/sharing/index.vue'),
        meta: {
          title: '跨业态共享',
          icon: 'mdi:share-variant',
        },
      },
      {
        path: 'analytics',
        name: 'ResourceAnalytics',
        component: () => import('#/views/resource-center/analytics/index.vue'),
        meta: {
          title: '数据分析与可视化',
          icon: 'mdi:chart-line',
        },
      },
      {
        path: 'security',
        name: 'ResourceSecurity',
        component: () => import('#/views/resource-center/security/index.vue'),
        meta: {
          title: '权限与安全管理',
          icon: 'mdi:shield-account',
        },
      },
      {
        path: 'capability',
        name: 'CapabilityManagement',
        component: () => import('#/views/resource-center/capability/index.vue'),
        meta: {
          title: '能力管理',
          icon: 'mdi:appstore-outlined',
        },
      },
      {
        path: 'saas-factory',
        name: 'SaaSFactory',
        component: () =>
          import('#/views/resource-center/saas-factory/index.vue'),
        meta: {
          title: 'SaaS工厂',
          icon: 'mdi:factory',
        },
      },
      {
        path: 'saas-factory/industry-template',
        name: 'IndustryTemplate',
        component: () =>
          import('#/views/resource-center/saas-factory/industry-template.vue'),
        meta: {
          title: '业态模板管理',
          icon: 'mdi:template',
          hideInMenu: true,
        },
      },
      {
        path: 'pricing',
        name: 'ResourcePricing',
        component: () => import('#/views/resource-center/pricing/index.vue'),
        meta: {
          title: '定价配置',
          icon: 'mdi:currency-usd',
        },
      },
      {
        path: 'registry',
        name: 'ResourceRegistry',
        component: () => import('#/views/resource-center/registry/index.vue'),
        meta: {
          title: '资源注册',
          icon: 'mdi:plus-circle',
        },
      },
      {
        path: 'market',
        name: 'ResourceMarket',
        meta: {
          title: '资源市场',
          icon: 'mdi:storefront',
        },
        children: [
          {
            path: 'listings',
            name: 'MarketListings',
            component: () => import('#/views/resource-center/market/index.vue'),
            meta: {
              title: '市场列表',
              icon: 'mdi:format-list-bulleted',
            },
          },
          {
            path: 'orders',
            name: 'MarketOrders',
            component: () =>
              import('#/views/resource-center/market/orders.vue'),
            meta: {
              title: '订单管理',
              icon: 'mdi:clipboard-list',
            },
          },
          {
            path: 'transactions',
            name: 'MarketTransactions',
            component: () =>
              import('#/views/resource-center/market/transactions.vue'),
            meta: {
              title: '交易记录',
              icon: 'mdi:credit-card',
            },
          },
          {
            path: 'seller',
            name: 'SellerCenter',
            component: () =>
              import('#/views/resource-center/market/seller.vue'),
            meta: {
              title: '卖家中心',
              icon: 'mdi:account-tie',
            },
          },
        ],
      },
      {
        path: 'monitoring',
        name: 'ResourceMonitoring',
        meta: {
          title: '资源监控',
          icon: 'mdi:monitor-dashboard',
        },
        children: [
          {
            path: 'realtime',
            name: 'RealTimeMonitoring',
            component: () =>
              import('#/views/resource-center/monitoring/realtime.vue'),
            meta: {
              title: '实时监控',
              icon: 'mdi:clock-outline',
            },
          },
          {
            path: 'alerts',
            name: 'ResourceAlerts',
            component: () =>
              import('#/views/resource-center/monitoring/alerts.vue'),
            meta: {
              title: '告警管理',
              icon: 'mdi:alert-circle',
            },
          },
        ],
      },
      {
        path: 'settings',
        name: 'ResourceSettings',
        meta: {
          title: '系统设置',
          icon: 'mdi:cog',
        },
        children: [
          {
            path: 'categories',
            name: 'ResourceCategories',
            component: () =>
              import('#/views/resource-center/settings/categories.vue'),
            meta: {
              title: '资源分类',
              icon: 'mdi:tag',
            },
          },
          {
            path: 'templates',
            name: 'ResourceTemplates',
            component: () =>
              import('#/views/resource-center/settings/templates.vue'),
            meta: {
              title: '资源模板',
              icon: 'mdi:file-document-outline',
            },
          },
          {
            path: 'rules',
            name: 'SchedulingRules',
            component: () =>
              import('#/views/resource-center/settings/rules.vue'),
            meta: {
              title: '调度规则',
              icon: 'mdi:rule',
            },
          },
        ],
      },
    ],
  },
];

export default resourceCenter;
